package com.zbkj.crmeb.store.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.crmeb.core.annotation.ConvertType;
import com.crmeb.core.annotation.UnitConvert;
import com.zbkj.crmeb.marketing.model.StoreCoupon;
import com.zbkj.crmeb.store.model.StoreProductAttr;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 商品响应表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_product")
@ApiModel(value="StoreProduct对象", description="商品表")
public class StoreProductResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)")
    private Integer merId;

    @ApiModelProperty(value = "商品条码（一维码）")
    private String barCode;

    @ApiModelProperty(value = "商品名称")
    private String storeName;

    @ApiModelProperty(value = "状态（0：未上架，1：上架）")
    private Boolean isShow;

    @ApiModelProperty(value = "库存")
    private Integer stock;
    
    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "图搜更新标识")
    private Boolean isTusou;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "分类id")
    private Integer cateId;

    @ApiModelProperty(value = "商品价格")
    @UnitConvert(ConvertType.PRICE)
    private BigDecimal price;

    @ApiModelProperty(value = "活动价格")
    private BigDecimal promotePrice;

    @ApiModelProperty(value = "会员价格")
    private BigDecimal vipPrice;

    @ApiModelProperty(value = "市场价")
    private BigDecimal otPrice;

    @ApiModelProperty(value = "商户成本价")
    @UnitConvert(ConvertType.COST)
    private BigDecimal cost;

    @ApiModelProperty(value = "第三方推送的成本价")
    private BigDecimal sourceCost;

    @ApiModelProperty(value = "邮费")
    private BigDecimal postage;

    @ApiModelProperty(value = "是否包邮")
    private Boolean isPostage;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "不同供应商代码")
    private Integer isEurope;

    @ApiModelProperty(value = "返佣比例")
    private BigDecimal rebateRate;

    @ApiModelProperty(value = "是否新品")
    private Boolean isNew;

    @ApiModelProperty(value = "供应商id")
    private Integer suppliersId;

    @ApiModelProperty(value = "供应商名称")
    private String suppliersName;

    @ApiModelProperty(value = "供应商编号")
    private String suppliersNameCode;

    @ApiModelProperty(value = "供应商类型")
    private Integer suppliersType;

    @ApiModelProperty(value = "获得积分")
    private BigDecimal giveIntegral;

    @ApiModelProperty(value = "是否单独分佣")
    private Boolean isSub;

    @ApiModelProperty(value = "运费模板ID")
    private Integer tempId;

    @ApiModelProperty(value = "发货地")
    private Integer stockArea;

    @ApiModelProperty(value = "品牌ID")
    private Integer brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "更新标识")
    private Boolean updateFlag;
    
    @ApiModelProperty(value = "是否可推送天猫")
    private Boolean tmall;

    @ApiModelProperty(value = "色号")
    private String colorCode;

    @ApiModelProperty(value = "季节代码")
    private String seasonCode;

    @ApiModelProperty(value = "标准商品id")
    private Integer normId;

    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "新旧程度（二手商品必填）")
    private String degree;

    @ApiModelProperty(value = "自建商品推送状态( 0未推送  1审核中  2已通过  3已拒绝)")
    private Integer selfPushStatus;

    @ApiModelProperty(value = "推送状态改变时间")
    private Date pushChangeTime;

    @ApiModelProperty(value = "供应商商品类型(1API接口  2表格导入  3商户自建转云仓)")
    private Integer commodityType;

    @ApiModelProperty(value = "自建转云仓标识")
    private Integer convertIsEurope;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;

    @ApiModelProperty(value = "最后推送时间")
    private Date lastPushTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "轮播图")
    private String sliderImage;
    
    @ApiModelProperty(value = "单位")
    private String unitName;
    
    @ApiModelProperty(value = "成分")
    private String composition;
    
    @ApiModelProperty(value = "规格")
    private String dimension;
    
    @ApiModelProperty(value = "规格 0单 1多")
    private Boolean specType;
    
    @ApiModelProperty(value = "小视频")
    private String video;

    @ApiModelProperty(value = "官网实拍图")
    private String gwpp1;
    
    @ApiModelProperty(value = "官网模特图")
    private String gwmt1;
    
    @ApiModelProperty(value = "店拍实拍图")
    private String sp1;
    
    @ApiModelProperty(value = "自有实拍图")
    private String sp;
    
    @ApiModelProperty(value = "店拍模特图")
    private String mt1;
    
    @ApiModelProperty(value = "自有模特图")
    private String mt;
    
    @ApiModelProperty(value = "明星海报图")
    private String mx1;
    
    @ApiModelProperty(value = "自拍视频图")
    private String sp2;
    
    @ApiModelProperty(value = "店拍视频图")
    private String sp3;
    
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;
    
    @ApiModelProperty(value = "产地")
    private String productionPlace;

    @ApiModelProperty(value = "商品信息")
    private String productInformation;

    @ApiModelProperty(value = "分类中文")
    private String cateValues;

    @ApiModelProperty(value = "发货时间")
    private String deliveryTime;

    @ApiModelProperty(value = "收货时间")
    private String receivingTime;

    @ApiModelProperty(value = "预计发货天数")
    private Integer deliveryData;

    @ApiModelProperty(value = "最快到货天数")
    private Integer earliestArrivalData;

    @ApiModelProperty(value = "最慢到货天数")
    private Integer slowestArrivalData;

    @ApiModelProperty(value = "商品描述")
    private String content;

    @ApiModelProperty(value = "收藏数量")
    private Integer collectCount;

    @ApiModelProperty(value = "品牌图片")
    private String brandImage;

    @ApiModelProperty(value = "是否置顶(1 是 2 否)")
    private Integer isTop;

    @ApiModelProperty(value = "折扣")
    private String discount;

    @ApiModelProperty(value = "平台加价率")
    private BigDecimal platRatio;

    @ApiModelProperty(value = "商户加价率")
    private BigDecimal merRatio;

    @ApiModelProperty(value = "加价金额")
    private BigDecimal raisePrice;

    @ApiModelProperty(value = "头层物流费用")
    private BigDecimal firstPrice;

    @ApiModelProperty(value = "税费 + 二段物流费用")
    private BigDecimal taxAndSecondPrice;

    @ApiModelProperty(value = "加价计算方式")
    private String calculation;

    @ApiModelProperty(value = "是否推荐 0否 1是")
    private Boolean isRecommend;

    @ApiModelProperty(value = "尺码集合")
    private List<String> sizeList;

    @ApiModelProperty(value = "商家上架状态 0下架 1上架")
    private Integer merIsShow;

    @ApiModelProperty(value = "渠道商户名称")
    private String merchantName;

    @ApiModelProperty(value = "销售状态,0仓库中,1在售,2已售罄")
    private Integer salesStatus;
    
    @ApiModelProperty(value = "是否精品")
    private Boolean isBest;

    @ApiModelProperty(value = "推荐时间")
    private Date bestTime;

    @ApiModelProperty(value = "商品简介")
    private String storeInfo;

    @ApiModelProperty(value = "商品推荐图")
    private String recommendImg;

    @ApiModelProperty(value = "上架时间")
    private Date shelfTime;

    @ApiModelProperty(value = "优惠券")
    private List<StoreCoupon> coupons;

    @ApiModelProperty(value = "优惠券Ids")
    private List<Integer> couponIds;

    @ApiModelProperty(value = "分类集合")
    private Integer[] cateIds;

    @ApiModelProperty(value = "商品属性")
    private List<StoreProductAttr> attr;

    @ApiModelProperty(value = "商品属性详情")
    private List<StoreProductAttrValueResponse> attrValue;

    @ApiModelProperty(value = "管理端用于映射attrResults")
    private List<HashMap<String,Object>> attrValues;

    @ApiModelProperty(value = "会员折扣金额")
    private BigDecimal memberDiscountPrice;

    @ApiModelProperty(value = "会员折扣比例")
    private BigDecimal memberDiscountRatio;

    @ApiModelProperty(value = "是否会员折扣商品,false否,true是")
    private Boolean memberDiscountFlag;

    @ApiModelProperty(value = "秒杀价")
    private BigDecimal spikePrice;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "标签展示类型1主图,2轮播图")
    private Integer labelDisplayType;

    @ApiModelProperty(value = "标签图标")
    private String labelIconUrl;

    @ApiModelProperty(value = "是否活动商品0否，1是")
    private Integer activityFlag;

    @ApiModelProperty(value = "二级会员售价")
    private BigDecimal v2Price;

    @ApiModelProperty(value = "三级会员售价")
    private BigDecimal v3Price;

    @ApiModelProperty(value = "标准商品关键字")
    private String normKeywords;

    @ApiModelProperty(value = "收藏标识")
    private Boolean userCollect;
    
    @ApiModelProperty(value = "拼多多商品id")
    private String pddGoodsId;

    @ApiModelProperty(value = "是否是拼团商品0否，1是")
    private Integer activityGroupFlag;

    @ApiModelProperty(value = "拼团活动价格")
    private BigDecimal packagePrice;
    
    @ApiModelProperty(value = "是否已参加其他满减送活动")
    private Boolean otherDiscount = false;

    @ApiModelProperty(value = "推送平台")
    private String pushPlat;

    @ApiModelProperty(value = "推送平台")
    @TableField(exist = false)
    private String pushPlatDesc;

    @ApiModelProperty(value = "满减活动描述")
    @TableField(exist = false)
    private String channelDiscountDescription;

    @ApiModelProperty(value = "shipping_temp_id")
    private Integer shippingTempId;

    @ApiModelProperty(value = "平台品牌ID")
    @TableField(exist = false)
    private String byBrandId;
    @ApiModelProperty(value = "平台品牌名")
    @TableField(exist = false)
    private String byBrandName;
    @ApiModelProperty(value = "平台类目ID")
    @TableField(exist = false)
    private String byCategoryId;
    @ApiModelProperty(value = "平台类目名")
    @TableField(exist = false)
    private String byCategoryName;
    @ApiModelProperty(value = "税费")
    @TableField(exist = false)
    private BigDecimal taxPrice;
    @ApiModelProperty(value = "二段物流")
    @TableField(exist = false)
    private BigDecimal secondPrice;

    @ApiModelProperty(value = "酒类商品酒庄")
    private String winery;

    @ApiModelProperty(value = "酒类商品年份")
    private String productYear;

    @ApiModelProperty(value = "酒类商品葡萄品种")
    private String grapeVariety;

}
